using System.Text.Json.Serialization;
using JlPay.Sdk.Models;

namespace JlPay.Sdk.Models.Cashier
{
    /// <summary>
    /// 交易退款请求
    /// </summary>
    public class TradeRefundRequest : OrgBaseRequest
    {
        
        /// <summary>
        /// API URI
        /// </summary>
        public const string API_URI = "/open/cashier/trans/trade/refund";

        /// <summary>
        /// 外部交易号
        /// </summary>
        [JsonPropertyName("out_trade_no")]
        public string? OutTradeNo { get; set; }

        /// <summary>
        /// 原外部交易号
        /// </summary>
        [JsonPropertyName("ori_out_trade_no")]
        public string? OriOutTradeNo { get; set; }

        /// <summary>
        /// 退款金额
        /// </summary>
        [JsonPropertyName("total_amount")]
        public string? TotalAmount { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        [JsonPropertyName("remark")]
        public string? Remark { get; set; }
    }
} 